<template>
	<view class="public">
	<u-form :model="form" ref="uForm">
		<u-form-item label="公告标题" label-width="20%">
			<u-input v-model="form.title" />
		</u-form-item>
		<u-form-item label="公告内容" label-width="20%">
			<u-input type="textarea" height="100" autoHeight v-model="form.content" />
		</u-form-item>
		<u-form-item label="发布时间" label-width="20%">
			<u-input v-model="form.date" />
		</u-form-item>
	</u-form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//公告列表
				form: {
					title: '',
					content: '',
					date: ''
				}
			}
		},
		onLoad: function(option) {
			this.form = JSON.parse(decodeURIComponent(option.item));
		},
		methods: {

		},
	}
</script>

<style lang="scss" scoped>
	.public{
		margin: 0 30rpx;
	}
</style>
